package com.lookme.lmtool.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.awt.*;
import java.util.HashMap;

/**
 * 矩形外框
 * @author blake
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Rect {
    /**
     * 起始X坐标
     */
    int x;
    /**
     * 起始Y坐标
     */
    int y;
    /**
     * 矩形宽度
     */
    int width;
    /**
     * 矩形高度
     */
    int height;

    /**
     *
     */
    HashMap<Point, Integer> pointMap;

    public int getEndX(){
        return x+width;
    }
    public int getEndY(){
        return y+height;
    }
}
